package wh.bos.service.take_delivery;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import wh.bos.domain.take_delivery.PageBean;
import wh.bos.domain.take_delivery.Promotion;


public interface PromotionService {
	//保存宣传任务
	void save(Promotion model);
	//分页查询(后台)
	Page<Promotion> findPageDate(Pageable pageable);
	
	//根据page和rows返回分页数据(前台)
	@Path("/pageQuery")
	@GET
	@Produces({"application/xml","application/json"})
	PageBean<Promotion> findPageDate1(
			@QueryParam("page") int page,
			@QueryParam("rows") int rows
			);
}
